﻿namespace AutoRevit.Entry.Command;

/// <summary>
/// 处理返回对象
/// </summary>
public sealed class HandlerResult
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="revitResult"></param>
    /// <param name="canContinue"></param>
    public HandlerResult(Result revitResult, bool canContinue)
    {
        RevitResult = revitResult;
        CanContinue = canContinue;
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="canContinue"></param>
    public HandlerResult(bool canContinue) : this(Result.Succeeded, canContinue)
    {
    }

    /// <summary>
    /// revit 返回对象
    /// </summary>
    public Result RevitResult { get; }

    /// <summary>
    /// 是否继续
    /// </summary>
    public bool CanContinue { get; }
}
